home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19980424-19980901
/
000027_news@newsmaster….columbia.edu _Mon May 4 11:51:09 1998.msg
< prev
next >
Wrap
Internet Message Format
|
1998-08-31
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA05642
for <kermit.misc@watsun.cc.columbia.edu>; Mon, 4 May 1998 11:51:08 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA17179
for kermit.misc@watsun; Mon, 4 May 1998 11:51:08 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.os.aos,comp.protocols.kermit.misc
Subject: Re: parameter btw kermit and aos/vs
Date: 4 May 1998 15:51:06 GMT
Organization: Columbia University
Lines: 33
Distribution: inet
Message-ID: <6iko5a$t1d$1@apakabar.cc.columbia.edu>
References: <B173421696681120E@0.0.0.0>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.os.aos:1367 comp.protocols.kermit.misc:8678
In article <B173421696681120E@0.0.0.0>,
Thierry Wautelet <wautelet@innet.be> wrote:
: I would like to pass a value between an AOS/VS macro and
: a Kermit script.
:
I'll show you how to do it in UNIX and then maybe you or somebody else
who knows more about AOS/VS than I do can explain how to do it there.
Suppose you have a UNIX shell script called "send" that is supposed to
send a file with Kermit. It might look like this:
kermit -s $1
If you invoke it like this:
send foo.bar
the UNIX shell substitutes "foo.bar" for the formal parameter "$1".
Now suppose suppose you have a Kermit script program stored in a file
called "myscript.ksc", and it uses a variable \%f to represent a filename,
and you want to run this script from the UNIX command line, passing the
filename to the script. You would do this with a shell script like this:
kermit -C "define \%f $1, take myscript.ksc"
My guess at an AOS/VS translation of this would be:
kermit -C "define \%%f %1%, take myscript.ksc"
(I assume the "%" in "\%f" would need to be quoted somehow...)
- Frank